class CandyRecordModel {
  String id;
  String type;
  var amount;
  String createdTime;

  CandyRecordModel({this.id, this.type, this.amount, this.createdTime});

  CandyRecordModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    type = json['type'];
    amount = json['amount'];
    createdTime = json['createdTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['type'] = this.type;
    data['amount'] = this.amount;
    data['createdTime'] = this.createdTime;
    return data;
  }
}